//
//  AppNetwork+Album.h
//  XiaoMiao
//
//  Created by 23 on 2018/2/6.
//  Copyright © 2018年 smallyou. All rights reserved.
//

#import "AppNetwork.h"
#import "XMUploadPhotoModel.h"
#import "KV2CameraAngleNormalModel.h"
#import "XMTypeListModel.h"
#import "XMUserDetailTagModel.h"
#import "XMUserCreateModel.h"
#import "XMNewPersonDetailModel.h"
#import "AddressProvinceCityModel.h"


@class XMCameraAngleModel;
@class XMUploadPhotoModel;

@interface AppNetwork (Album)

/**获取图库 partyId:用户的id*/
+ (void)album_getLibraryWithPartyId:(NSString *)partyId completion:(void(^)(BOOL success, id response, NSString *errMsg))completion;

/**获取拍照的角度*/
+ (void)album_getCameraAngleWithCateId:(NSString *)cateId
                             subCateId:(NSString *)subCateId
                          subSubCateId:(NSString *)subSubCateId
                              realName:(NSString *)realName
                            completion:(void(^)(BOOL success, NSArray<XMCameraAngleModel *> *angles, AppError *error))completion;

/**上传照片和资料请求*/
+ (AppURLSessionTask *)album_uploadPhotoAndInfoWithModel:(XMUploadPhotoModel *)model completion:(void(^)(BOOL success, NSString *errorMsg))completion;


/**检测新创建用户名字*/
+ (AppURLSessionTask *)album_CheckUserNameWithrealName:(NSString *)realName completion:(void(^)(BOOL success,NSString * partyId, NSString *errorMsg))completion;

/**------V2-------获取拍照默认角度*/
+ (void)album_V2GetCameraAngleNormalWithrealName:(NSString *)realName completion:(void(^)(BOOL success, KV2CameraAngleNormalModel * model , AppError *error))completion;

/**------V2-------根据上一级获取下一级数据*/
+ (void)album_V2GetCameraSubListWithParentId:(NSString *)parentId completion:(void(^)(BOOL success, NSArray * modelList , AppError *error))completion;

/**------V2-------根据分级获取拍照角度*/
+ (void)album_V2GetCameraAngleWithRealName:(NSString *)realName cateId:(NSString *)cateId subCateId:(NSString *)subCateId completion:(void(^)(BOOL success, NSMutableArray <KV2CameraAngleModel *>* models , AppError *error))completion;

/**------V2-------获取项目选择分类*/
+ (void)album_V2GetProjectListWithsubCateId:(NSString *)subCateId completion:(void(^)(BOOL success, XMTypeListModel *model , AppError *error))completion;
/**------V2-------获取医美史列表*/
+ (void)album_V2GetBeautyHistorycompletion:(void(^)(BOOL success, XMTypeListModel *model , AppError *error))completion;
/**------V2-------获取个人信息标签*/
+ (void)album_V2GetUserDetailTagCompletion:(void(^)(BOOL success, XMUserDetailTagListModel *model , AppError *error))completion;

/**创建用户*/
+ (void)album_createUserDataWithModel:(XMUserCreateModel *)model completion:(void(^)(BOOL success, NSString * data, AppError *error))completion;

/**------V2-------获取客户信息列表*/
+ (void)album_V2GetPersonDetailInfoWithPartyId:(NSString *)partyId Completion:(void(^)(BOOL success, XMNewPersonDetailModel *model , AppError *error))completion;

/**------V2-------修改客户信息列表*/
+ (void)album_V2uploadPersonDetailInfoWithCreateModel:(XMUserCreateModel *)model Completion:(void(^)(BOOL success, XMNewPersonDetailModel *model , AppError *error))completion;

/**------V2-------删除客户信息列表*/
+ (void)album_V2deletePersonDetailInfoWithPartyId:(NSString *)partyId doctorId:(NSString *)doctorId Completion:(void(^)(BOOL success, XMNewPersonDetailModel *model , AppError *error))completion;
/**------V2-------删除图库*/
/**------V2-------删除图库*/
+ (void)album_V2deletePIClistWithID:(NSString *)id Completion:(void(^)(BOOL success ,id response, AppError *error))completion;

/**------V2-------获取省市区*/
+ (void)album_V2GetProvinceCityListWithDept:(NSString *)dept     parentId:(NSString *)parentId  Completion:(void(^)(BOOL success ,NSArray * array, AppError *error))completion;
@end
